//
//  Alu_LineShowView.h
//  LineShowDome
//
//  Created by lirilu on 15/6/24.
//  Copyright (c) 2015年 glirlu@gmail.com. All rights reserved.
//

#import <UIKit/UIKit.h>


#pragma mark SourceDelegate
@protocol Alu_LineShowViewDataSourceDelegate <NSObject>

@required
- (NSInteger)lineShowPointCount;
- (NSInteger)lineShowEndPoint;
- (BOOL)lineShowNeedShowPointInIndex:(NSInteger)index;
- (CGFloat)lineShowValueInIndex:(NSInteger)index;
- (NSString*)lineShowTitleInIndex:(NSInteger)index;
@optional

@end


#pragma mark Deletgae
@protocol Alu_LineShowViewDeletage <NSObject>

@required
- (NSInteger)lineShowLineWidth;
- (UIColor*)lineShowLineColor;
@optional
- (CGFloat)lineShowPointRadius;
- (UIColor*)lineShowPointColor;
- (UIColor*)lineShowPointDefualtColor;
- (UIColor*)lineShowLineDefualtColor;
- (UIFont*)lineShowTitleFont;
@end

#pragma mark Alu_LineShowView
@interface Alu_LineShowView : UIView
{
}
@property(assign,nonatomic) NSInteger lineWidth;
@property(retain,nonatomic) UIColor *lineColor;
@property(retain,nonatomic) UIColor *lineDefualtColor;
@property(retain,nonatomic) UIFont *titleFont;
@property(assign,nonatomic) NSInteger linePointCount;
@property(assign,nonatomic) NSInteger lineEndPoint;

@property(retain,nonatomic) id<Alu_LineShowViewDataSourceDelegate> deletageSource;
@property(retain,nonatomic) id<Alu_LineShowViewDeletage> delegate;

- (void)updateLineShowView;


@end
